function UI_Combotree(id,data){
 var $this=this;

 
 var objJquery = jQuery("#"+id);

           
			
			
	        var t_checkbox =objJquery.attr("checkbox"); 
            var t_cascadeCheck =objJquery.attr("cascadeCheck");
            var t_url = objJquery.attr("url");
			var t_multiple=objJquery.attr("ismultiple");
           
			objJquery.combotree({
				lines: true,
				data : data,
				multiple:(t_multiple==undefined || t_multiple=="true") ?true:false,
				checkbox :(t_checkbox==undefined || t_checkbox=="true") ?true:false, 
                cascadeCheck :(t_cascadeCheck==undefined || t_cascadeCheck=="true") ?true:false,
				onClick:function(node){

				objJquery.tree('toggle', node.target);



			//if (node){
			//	objJquery.tree('getChildren', node.target);
			//} else {
			//	objJquery.tree('getChildren');
			//}
					//if(t_beginEdit=="true")
				//	objJquery.tree('beginEdit', node.target);
					
				}
		/**		onContextMenu: function(e, node){
					e.preventDefault();
					$this.tree('select', node.target);
					$this1.menu('show', {
					left: e.pageX,
					top: e.pageY
			        });
				}*/
			});
		
		
			
		

this.getValue=function (){
			var val = objJquery.combotree('getValue');
			//alert(val);
			return val;
		}



		
	

}

